#ifndef XYZ_COLOR_LABEL_H
#define XYZ_COLOR_LABEL_H

#include <QFrame>
#include <QColor>
#include <QPoint>
#include <QPainter>


/**
 *	A Colored Frame
 */
class ColorLabel : public QFrame
{
    Q_OBJECT

public:
    ColorLabel( QWidget *parent, const char* name = 0 );
	
    void setColor( QColor c ) {
		color = c; 
		repaint();
	}

	QColor getColor() const {
		return color;
	}

signals:

	void colorChanged(const QColor &);

public slots:


protected:
    void mousePressEvent( QMouseEvent *e );
	void paintEvent(QPaintEvent * event);

private:
    QColor color;
};

#endif

